package com.tedu.egmybatis1;

import com.tedu.egmybatis1.controller.UserController;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
@MapperScan("com.tedu.egmybatis1.mapper")
public class Egmybatis1Application {

    public static void main(String[] args) {
        UserController controller=
                SpringApplication.run(Egmybatis1Application.class, args).getBean(UserController.class);
        controller.a();
    }

}
